﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HtmlAgilityPack;

namespace NetWorkDataCapture
{
    class function1
    {
        public HtmlNodeCollection httphelpertest(string urlheh)
        {
            DotNet4.Utilities.HttpItem item = new DotNet4.Utilities.HttpItem();
            DotNet4.Utilities.HttpHelper helper = new DotNet4.Utilities.HttpHelper();
            item.URL = getRules.ZhuaQuAddress();

            item.Method = "GET";
            DotNet4.Utilities.HttpResult result = helper.GetHtml(item);
            HtmlDocument doc = new HtmlDocument();
            doc.LoadHtml(result.Html);
            HtmlNodeCollection nodes = doc.DocumentNode.SelectNodes(getRules.getHtmlUrl);
            return nodes;

        }
    }
}
